package com.smartlbs.enums;

/**
 * 支付类型枚举 
 *
 *
 */
public enum PayTypeEnums {
	//
    VOUCHER(1, "充值"), BET(2, "押注"), AWARD(3, "奖励"), CONVERT(4, "外部积分兑换");
    
    private Integer value;
    private String memo;
    
    private PayTypeEnums(Integer value, String memo) {
    	this.value = value;
    	this.memo = memo;
    }
    
    public Integer getValue(){
    	return value;
    }
    
	public String getMemo() {
		return memo;
	}

	public static String getMemoByValue(Integer value){
		for(PayTypeEnums e : PayTypeEnums.values()){
			if(e.getValue() == value){
				return e.getMemo();
			}
		}
		return "";
	}
}